<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<html>
<head>
    <title>登录页</title>
    <%--echart线图、柱状图、饼图等各种图型库 cdn--%>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.3/echarts.min.js"></script>
    <%--jquery cdn--%>
    <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>
</head>
<body>
    ${error}
<form action="/add.do">

    名称 <input name="name"><br>
    编号 <input name="num"><br>
    职位<select name="postId">
    <option value="">请选择</option>
    <c:forEach items="${postList}" var="p">
        <option   ${query.postId == p.id ?'selected':''}      value="${p.id}">${p.name}</option>
    </c:forEach>
</select><br>

    院校<select name="schoolId">
    <option value="">请选择</option>
    <c:forEach items="${schoolList}" var="s">
        <option  ${query.schoolId == s.id ?'selected':''}   value="${s.id}">${s.name}</option>
    </c:forEach>
</select><br>


    部门
    <c:forEach items="${deptList}" var="d">
        <input type="radio" name="deptId" value="${d.id}">${d.name}
    </c:forEach>
    <br>

    开始日期 <input type="date" name="startTime"><br>
    结束日期 <input type="date"  name="endTime"><br>

    <input type="submit" value="添加">

</form>



</body>
</html>